package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

/**
 * ClassName: DishService
 * Package: com.itheima.reggie.service
 * Description:
 *
 * @Author www.youkewang.top
 * @Create 2023-10-26 16:05
 * @Version 1.0
 */
public interface DishService extends IService<Dish> {
    // 新增菜品，同时插入菜品对应的口味数据，需要操作两张表：dish、dish_flavor
    public void saveWithFlavor(DishDto dishDto);

    // 根据ID查询菜品信息和对应的口味信息
    public DishDto getByIdWithFlavor(Long id);

    // 更新菜品信息&口味信息
    public void updateWithFlavor (DishDto dishDto);
}
